#----------------------Makefile------------------------
.PHONY: all
name 	:= main
sub_name	:= 
sub_name	+= post postwin resources
ui_src		+= postwin.ui
g_settings_SCHEMA	:= org.gtk.8300.gschema.xml
g_resource_xml := post.gresource.xml

src_sub	:=
src_sub	+= $(addsuffix .c,$(sub_name))

sub_obj	:=

obj_src	:= 1

exist_mosquitto	:= 1
#exist_sqlite	:= 1
exist_json	:= glib
#exist_ssl	:= 1
#exist_xml	:= 1
#exist_event	:= 1
exist_gtk	:= 1
exist_schemas	:= 1
#exist_60870	:= 1
#exist_iec61850	:= 1
#exist_m		:= 1
exist_8300	:= 1

path_main	:= ../..
path_script	:= $(path_main)/script
include $(path_script)/Makefile.sub

$(target)	: $(objs) Makefile main.c
	${CROSS_COMPILE}${CC} $(filter %.o,$^) main.c ${CFLAGS} $(ld_inc) $(ld_libs) -g -o $@
$(path_obj)/%.o	: %.c
	${CROSS_COMPILE}${CC} $(ld_inc) ${CFLAGS} -c $^ -o $@

include $(path_script)/Makefile.gtk
include $(path_script)/Makefile.sub2
#----------------------end-----------------------------
